﻿<%@ Page Language="c#" CodeBehind="LegalEntity.aspx.cs" AutoEventWireup="false" Inherits="BEGDC.CC.Web.SystemManagement.LegalEntity" %>

<%@ Register TagPrefix="iewc1" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %>
<%@ Register TagPrefix="uc1" TagName="PageNavigation" Src="../UserControls/PageNavigation.ascx" %>
<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>Alcatel-Lucent Customer Care</title>
  
    <link href="../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../css/content/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="../css/content/entity.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery-1.4.4.min.js" type="text/javascript"></script>

    <script src="../js/jquery-ui.min.js" type="text/javascript"></script>

    <script src="../js/entity.js.aspx" type="text/javascript"></script>

    <script src="../js/common.js" type="text/javascript"></script>

    <script language="VBScript" src="../js/alert.vbs" type="text/vbscript"></script>



    <script type="text/javascript">
        function showLegalForm(id) {
            var code = window.showModalDialog('ShowLegalEntityForm.aspx?id=' + id, '', 'dialogHeight:300px;dialogWidth:400px;dialogTop:px;dialogLeft:px;center:Yes;scroll:yes;resizable:no;status:no;');
            //window.Form1.txtOperation.value = code;
        }
     
    </script>

    <script type="text/javascript">
        $(function() {
            $(".legal-add").bind("click", function() {
                var result = "";
                if ($(".Star").parent().next().children().first().val() == "") {
                    result += "Name could not be empty!\n";
                    $(".Star").parent().next().children().first().addClass("validation-error");
                }
                else {
                    $(".Star").parent().next().children().first().removeClass("validation-error");
                }

                if (result != "") {
                    alert(result);
                    return false;
                }
                return true;
            });

        });
    </script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div class="mainbox">
        <uc1:PageNavigation ID="PageNavigation1" runat="server"></uc1:PageNavigation>
        <a href="../UserControls/PageNavigation.ascx"></a>
        <table id="Table9" cellspacing="0" cellpadding="0">
            <!--DWLayoutTable-->
            <tr>
                <td>
                    <table id="Table4" cellspacing="0" cellpadding="0">
                        <tr>
                            <td>
                                <!--tab区域-->
                                <div class="tabbox purplebg_dark">
                                    <ul class="tabpos">
                                        <li><span class="tab_active"> <%=Resources.PageTitles.LegalEntityManagement%></span></li>
                                    </ul>
                                </div>
                                <div class="formbox">
                                    <span class=" float_lft">
                                        <asp:ResourceButton ID="btnExport" runat="server" ToolTip="ExportTips" Text="Export" CssClass="btn" />
                                    </span>
                                </div>
                                <tr>
                                    <td>
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <asp:DataGrid ID="dgLegalEntity" PagerStyle-Visible="False" AllowPaging="True" PageSize="10"
                                                        runat="server" CellPadding="2" GridLines="both" AutoGenerateColumns="False" ShowHeader="True"
                                                        AllowSorting="True" CssClass="tablestyle">
                                                        <ItemStyle CssClass="tbody"></ItemStyle>
                                                        <HeaderStyle CssClass="thead"></HeaderStyle>
                                                        <Columns>
                                                            <asp:BoundColumn Visible="False" DataField="LegalEntityID"></asp:BoundColumn>
                                                            <asp:BoundColumn DataField="LegalEntityName" HeaderText="Name<br/>实体名字" ReadOnly="True"
                                                                SortExpression="LegalEntityName">
                                                                <ItemStyle Width="15%"></ItemStyle>
                                                            </asp:BoundColumn>
                                                            <asp:BoundColumn DataField="Description" HeaderText="Description<br/>实体描述" ReadOnly="True">
                                                                <ItemStyle Width="65%"></ItemStyle>
                                                            </asp:BoundColumn>
                                                            <asp:BoundColumn DataField="IsEnabled" HeaderText="Enabled<br/>启用状态" ReadOnly="True"
                                                                SortExpression="IsEnabled">
                                                                <ItemStyle Width="15%"></ItemStyle>
                                                            </asp:BoundColumn>
                                                            <asp:TemplateColumn HeaderText="Action<br/>操作">
                                                                <HeaderStyle></HeaderStyle>
                                                                <ItemTemplate>
                                                                    <asp:ImageButton ImageUrl="../Images/COMEDIT.gif" ID="imageLegal" ToolTip="Edit (编辑)" CommandName="SetType"
                                                                        runat="server"></asp:ImageButton>
                                                                </ItemTemplate>
                                                                <ItemStyle Width="5%" HorizontalAlign="Center" />
                                                            </asp:TemplateColumn>
                                                        </Columns>
                                                        <PagerStyle HorizontalAlign="Center" Visible="False" Mode="NumericPages"></PagerStyle>
                                                    </asp:DataGrid>
                                                    <table id="Table3" cellspacing="0" cellpadding="0" class="pagecounting">
                                                        <tr>
                                                            <td>
                                                                Total Records:
                                                                <asp:Label ID="lblRecordCount" runat="server">lblRecordCount</asp:Label>
                                                                &nbsp;&nbsp;&nbsp;
                                                                <img src="../images/PageIcon.GIF" alt="" />&nbsp;Page:
                                                                <asp:Label ID="lblCurrentPageIndex" runat="server">lblCurrentPageIndex</asp:Label>&nbsp;/&nbsp;
                                                                <asp:Label ID="lblPageCount" runat="server">lblPageCount</asp:Label>
                                                            </td>
                                                            <td align="right">
                                                                <asp:ImageButton ID="btnPageFirst" runat="server" ImageUrl="../images/pg_first.gif"
                                                                    ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp;
                                                                <asp:ImageButton ID="btnPagePrev" runat="server" ImageUrl="../images/pg_pre.gif"
                                                                    ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp;
                                                                <asp:ImageButton ID="btnPageNext" runat="server" ImageUrl="../images/pg_next.gif"
                                                                    ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp;
                                                                <asp:ImageButton ID="btnPageLast" runat="server" ImageUrl="../images/pg_last.gif"
                                                                    ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp; Go To Page:
                                                                <asp:TextBox ID="txtPage" runat="server" CssClass="txtbox pager-text" MaxLength="5">
                                                                </asp:TextBox>
                                                                <asp:ImageButton ID="btnGotoPage" runat="server" ImageUrl="../images/PageIcon.GIF">
                                                                </asp:ImageButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="padding_lft5">
                                        <table class="tablestyle2">
                                            <tr>
                                                <td colspan="2" class="tablestyle2_Title">
                                                    <asp:Label ID="lbAddLegalEntity" runat="server">Add Legal Entity (添加新实体)</asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tablestyle2_tdTitle">
                                                    <asp:Label ID="lbLegalEntityName" runat="server">Legal Name (实体名)</asp:Label>
                                                    <span class="Star" id="span2" runat="server" style="color: Red">*</span>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtNewLegalName" runat="server" Width="120px" MaxLength="50" CssClass="txtbox" onmouseover="this.className='txtboxover';"
                                                onMouseOut="this.className='txtbox';"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tablestyle2_tdTitle">
                                                    <asp:Label ID="lbDescription" runat="server">Description (实体描述)</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtDescription" runat="server" Width="120px" MaxLength="250" CssClass="txtbox" onmouseover="this.className='txtboxover';"
                                                onMouseOut="this.className='txtbox';"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tablestyle2_tdTitle">
                                                    Enabled (是否启用)
                                                </td>
                                                <td>
                                                    <asp:CheckBox ID="chkEnabled" runat="server"></asp:CheckBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:ResourceButton ID="btnNewLegalEntity" runat="server" Text="Add" ToolTip="AddTips" CssClass="btn legal-add" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                    </table>
                </td>
            </tr>
        </table>
        </td> </tr> </table>
    </div>
    </form>
     <%--页面刷新时显示--%>
   <%-- <div id="dialog-message" title="Loading..." style="display: none">
        <p>
            <br />
            <span class="entity-loading"></span><span>Operation in process, please wait...<br />
                <br />
                处理中, 请稍候。。。</span>
        </p>
    </div>--%>
</body>
</html>
